set(TARGET_TEST_LINK_LIBS xlcomm_base xlcomm_net)

aux_source_directory(. NET_PROTORPC_SRC)
add_library(xlcomm_net_protorpc SHARED ${NET_PROTORPC_SRC})
set_target_properties(xlcomm_net_protorpc PROPERTIES COMPILE_FLAGS "-Wno-conversion")  # *.pb.cc忽略警告

set(TARGET_TEST_LINK_LIBS ${TARGET_TEST_LINK_LIBS} pthread protobuf)
target_link_libraries(xlcomm_net_protorpc ${TARGET_TEST_LINK_LIBS})